package org.example.myleet.p896;

import org.example.myleet.Utils.Assert;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(solution.isMonotonic(new int[]{1}));
        Assert.isTrue(solution.isMonotonic(new int[]{1,2,2,3}));
        Assert.isTrue(solution.isMonotonic(new int[]{6,5,4,4}));
        Assert.isTrue(!solution.isMonotonic(new int[]{1,3,2}));
        Assert.isTrue(solution.isMonotonic(new int[]{1,2,4,5}));
        Assert.isTrue(solution.isMonotonic(new int[]{1,1,1}));
    }
}
